package com.itlong.cloud.POJO.DTO.common;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <desc>
 *      客户端与服务端交互的数据模型
 * </desc>
 *
 * @createDate 2018/11/1
 */
@Data
@NoArgsConstructor
public class ParkingMessageDTO implements Serializable {
    private static final long serialVersionUID = -7543514952950971498L;
    private String id;   		//服务的唯一key
    private String content; 	//交互数据
    private Integer type;			//通信类型
    private String messageId;	//消息唯一ID


    public ParkingMessageDTO(String id, String content, Integer type, String messageId) {
        this.id = id;
        this.content = content;
        this.type = type;
        this.messageId = messageId;
    }

    public ParkingMessageDTO(String id, String content, Integer type) {
        this.id = id;
        this.content = content;
        this.type = type;

    }
}
